home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / winspool.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  9.6 KB  |  395 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'WinSpool.pas' rev: 3.00
  6.  
  7. #ifndef WinSpoolHPP
  8. #define WinSpoolHPP
  9. #include <Windows.hpp>
  10. #include <SysInit.hpp>
  11. #include <System.hpp>
  12.  
  13. //-- user supplied -----------------------------------------------------------
  14.  
  15. #include <winspool.h>
  16.  
  17.  
  18. namespace Winspool
  19. {
  20. //-- type declarations -------------------------------------------------------
  21. typedef _PRINTER_INFO_1A *PPrinterInfo1A;
  22.  
  23. typedef _PRINTER_INFO_1W *PPrinterInfo1W;
  24.  
  25. typedef _PRINTER_INFO_1A *PPrinterInfo1;
  26.  
  27. typedef _PRINTER_INFO_1A  TPrinterInfo1A;
  28.  
  29. typedef _PRINTER_INFO_1W  TPrinterInfo1W;
  30.  
  31. typedef _PRINTER_INFO_1A  TPrinterInfo1;
  32.  
  33. typedef _PRINTER_INFO_2A *PPrinterInfo2A;
  34.  
  35. typedef _PRINTER_INFO_2W *PPrinterInfo2W;
  36.  
  37. typedef _PRINTER_INFO_2A *PPrinterInfo2;
  38.  
  39. typedef _PRINTER_INFO_2A  TPrinterInfo2A;
  40.  
  41. typedef _PRINTER_INFO_2W  TPrinterInfo2W;
  42.  
  43. typedef _PRINTER_INFO_2A  TPrinterInfo2;
  44.  
  45. typedef _PRINTER_INFO_3 *PPrinterInfo3;
  46.  
  47. typedef _PRINTER_INFO_3  TPrinterInfo3;
  48.  
  49. typedef _PRINTER_INFO_4A *PPrinterInfo4A;
  50.  
  51. typedef _PRINTER_INFO_4W *PPrinterInfo4W;
  52.  
  53. typedef _PRINTER_INFO_4A *PPrinterInfo4;
  54.  
  55. typedef _PRINTER_INFO_4A  TPrinterInfo4A;
  56.  
  57. typedef _PRINTER_INFO_4W  TPrinterInfo4W;
  58.  
  59. typedef _PRINTER_INFO_4A  TPrinterInfo4;
  60.  
  61. typedef _PRINTER_INFO_5A *PPrinterInfo5A;
  62.  
  63. typedef _PRINTER_INFO_5W *PPrinterInfo5W;
  64.  
  65. typedef _PRINTER_INFO_5A *PPrinterInfo5;
  66.  
  67. typedef _PRINTER_INFO_5A  TPrinterInfo5A;
  68.  
  69. typedef _PRINTER_INFO_5W  TPrinterInfo5W;
  70.  
  71. typedef _PRINTER_INFO_5A  TPrinterInfo5;
  72.  
  73. typedef _PRINTER_INFO_6 *PPrinterInfo6;
  74.  
  75. typedef _PRINTER_INFO_6  TPrinterInfo6;
  76.  
  77. typedef _JOB_INFO_1A *PJobInfo1A;
  78.  
  79. typedef _JOB_INFO_1W *PJobInfo1W;
  80.  
  81. typedef _JOB_INFO_1A *PJobInfo1;
  82.  
  83. typedef _JOB_INFO_1A  TJobInfo1A;
  84.  
  85. typedef _JOB_INFO_1W  TJobInfo1W;
  86.  
  87. typedef _JOB_INFO_1A  TJobInfo1;
  88.  
  89. typedef _JOB_INFO_2A *PJobInfo2A;
  90.  
  91. typedef _JOB_INFO_2W *PJobInfo2W;
  92.  
  93. typedef _JOB_INFO_2A *PJobInfo2;
  94.  
  95. typedef _JOB_INFO_2A  TJobInfo2A;
  96.  
  97. typedef _JOB_INFO_2W  TJobInfo2W;
  98.  
  99. typedef _JOB_INFO_2A  TJobInfo2;
  100.  
  101. typedef _JOB_INFO_3 *PJobInfo3;
  102.  
  103. typedef _JOB_INFO_3  TJobInfo3;
  104.  
  105. typedef _ADDJOB_INFO_1A *PAddJobInfo1A;
  106.  
  107. typedef _ADDJOB_INFO_1W *PAddJobInfo1W;
  108.  
  109. typedef _ADDJOB_INFO_1A *PAddJobInfo1;
  110.  
  111. typedef _ADDJOB_INFO_1A  TAddJobInfo1A;
  112.  
  113. typedef _ADDJOB_INFO_1W  TAddJobInfo1W;
  114.  
  115. typedef _ADDJOB_INFO_1A  TAddJobInfo1;
  116.  
  117. typedef _DRIVER_INFO_1A *PDriverInfo1A;
  118.  
  119. typedef _DRIVER_INFO_1W *PDriverInfo1W;
  120.  
  121. typedef _DRIVER_INFO_1A *PDriverInfo1;
  122.  
  123. typedef _DRIVER_INFO_1A  TDriverInfo1A;
  124.  
  125. typedef _DRIVER_INFO_1W  TDriverInfo1W;
  126.  
  127. typedef _DRIVER_INFO_1A  TDriverInfo1;
  128.  
  129. typedef _DRIVER_INFO_2A *PDriverInfo2A;
  130.  
  131. typedef _DRIVER_INFO_2W *PDriverInfo2W;
  132.  
  133. typedef _DRIVER_INFO_2A *PDriverInfo2;
  134.  
  135. typedef _DRIVER_INFO_2A  TDriverInfo2A;
  136.  
  137. typedef _DRIVER_INFO_2W  TDriverInfo2W;
  138.  
  139. typedef _DRIVER_INFO_2A  TDriverInfo2;
  140.  
  141. typedef _DRIVER_INFO_3A *PDriverInfo3A;
  142.  
  143. typedef _DRIVER_INFO_3W *PDriverInfo3W;
  144.  
  145. typedef _DRIVER_INFO_3A *PDriverInfo3;
  146.  
  147. typedef _DRIVER_INFO_3A  TDriverInfo3A;
  148.  
  149. typedef _DRIVER_INFO_3W  TDriverInfo3W;
  150.  
  151. typedef _DRIVER_INFO_3A  TDriverInfo3;
  152.  
  153. typedef _DOC_INFO_1A *PDocInfo1A;
  154.  
  155. typedef _DOC_INFO_1W *PDocInfo1W;
  156.  
  157. typedef _DOC_INFO_1A *PDocInfo1;
  158.  
  159. typedef _DOC_INFO_1A  TDocInfo1A;
  160.  
  161. typedef _DOC_INFO_1W  TDocInfo1W;
  162.  
  163. typedef _DOC_INFO_1A  TDocInfo1;
  164.  
  165. typedef _FORM_INFO_1A *PFormInfo1A;
  166.  
  167. typedef _FORM_INFO_1W *PFormInfo1W;
  168.  
  169. typedef _FORM_INFO_1A *PFormInfo1;
  170.  
  171. typedef _FORM_INFO_1A  TFormInfo1A;
  172.  
  173. typedef _FORM_INFO_1W  TFormInfo1W;
  174.  
  175. typedef _FORM_INFO_1A  TFormInfo1;
  176.  
  177. typedef _DOC_INFO_2A *PDocInfo2A;
  178.  
  179. typedef _DOC_INFO_2W *PDocInfo2W;
  180.  
  181. typedef _DOC_INFO_2A *PDocInfo2;
  182.  
  183. typedef _DOC_INFO_2A  TDocInfo2A;
  184.  
  185. typedef _DOC_INFO_2W  TDocInfo2W;
  186.  
  187. typedef _DOC_INFO_2A  TDocInfo2;
  188.  
  189. typedef _PRINTPROCESSOR_INFO_1A *PPrintProcessorInfo1A;
  190.  
  191. typedef _PRINTPROCESSOR_INFO_1W *PPrintProcessorInfo1W;
  192.  
  193. typedef _PRINTPROCESSOR_INFO_1A *PPrintProcessorInfo1;
  194.  
  195. typedef _PRINTPROCESSOR_INFO_1A  TPrintProcessorInfo1A;
  196.  
  197. typedef _PRINTPROCESSOR_INFO_1W  TPrintProcessorInfo1W;
  198.  
  199. typedef _PRINTPROCESSOR_INFO_1A  TPrintProcessorInfo1;
  200.  
  201. typedef _PORT_INFO_1A *PPortInfo1A;
  202.  
  203. typedef _PORT_INFO_1W *PPortInfo1W;
  204.  
  205. typedef _PORT_INFO_1A *PPortInfo1;
  206.  
  207. typedef _PORT_INFO_1A  TPortInfo1A;
  208.  
  209. typedef _PORT_INFO_1W  TPortInfo1W;
  210.  
  211. typedef _PORT_INFO_1A  TPortInfo1;
  212.  
  213. typedef _PORT_INFO_2A *PPortInfo2A;
  214.  
  215. typedef _PORT_INFO_2W *PPortInfo2W;
  216.  
  217. typedef _PORT_INFO_2A *PPortInfo2;
  218.  
  219. typedef _PORT_INFO_2A  TPortInfo2A;
  220.  
  221. typedef _PORT_INFO_2W  TPortInfo2W;
  222.  
  223. typedef _PORT_INFO_2A  TPortInfo2;
  224.  
  225. typedef _PORT_INFO_3A *PPortInfo3A;
  226.  
  227. typedef _PORT_INFO_3W *PPortInfo3W;
  228.  
  229. typedef _PORT_INFO_3A *PPortInfo3;
  230.  
  231. typedef _PORT_INFO_3A  TPortInfo3A;
  232.  
  233. typedef _PORT_INFO_3W  TPortInfo3W;
  234.  
  235. typedef _PORT_INFO_3A  TPortInfo3;
  236.  
  237. typedef _MONITOR_INFO_1A *PMonitorInfo1A;
  238.  
  239. typedef _MONITOR_INFO_1W *PMonitorInfo1W;
  240.  
  241. typedef _MONITOR_INFO_1A *PMonitorInfo1;
  242.  
  243. typedef _MONITOR_INFO_1A  TMonitorInfo1A;
  244.  
  245. typedef _MONITOR_INFO_1W  TMonitorInfo1W;
  246.  
  247. typedef _MONITOR_INFO_1A  TMonitorInfo1;
  248.  
  249. typedef _MONITOR_INFO_2A *PMonitorInfo2A;
  250.  
  251. typedef _MONITOR_INFO_2W *PMonitorInfo2W;
  252.  
  253. typedef _MONITOR_INFO_2A *PMonitorInfo2;
  254.  
  255. typedef _MONITOR_INFO_2A  TMonitorInfo2A;
  256.  
  257. typedef _MONITOR_INFO_2W  TMonitorInfo2W;
  258.  
  259. typedef _MONITOR_INFO_2A  TMonitorInfo2;
  260.  
  261. typedef _DATATYPES_INFO_1A *PDatatypesInfo1A;
  262.  
  263. typedef _DATATYPES_INFO_1W *PDatatypesInfo1W;
  264.  
  265. typedef _DATATYPES_INFO_1A *PDatatypesInfo1;
  266.  
  267. typedef _DATATYPES_INFO_1A  TDatatypesInfo1A;
  268.  
  269. typedef _DATATYPES_INFO_1W  TDatatypesInfo1W;
  270.  
  271. typedef _DATATYPES_INFO_1A  TDatatypesInfo1;
  272.  
  273. typedef _PRINTER_DEFAULTSA *PPrinterDefaultsA;
  274.  
  275. typedef _PRINTER_DEFAULTSW *PPrinterDefaultsW;
  276.  
  277. typedef _PRINTER_DEFAULTSA *PPrinterDefaults;
  278.  
  279. typedef _PRINTER_DEFAULTSA  TPrinterDefaultsA;
  280.  
  281. typedef _PRINTER_DEFAULTSW  TPrinterDefaultsW;
  282.  
  283. typedef _PRINTER_DEFAULTSA  TPrinterDefaults;
  284.  
  285. typedef _PRINTER_NOTIFY_OPTIONS_TYPE *PPrinterNotifyOptionsType;
  286.  
  287. typedef _PRINTER_NOTIFY_OPTIONS_TYPE  TPrinterNotifyOptionsType;
  288.  
  289. typedef _PRINTER_NOTIFY_OPTIONS *PPrinterNotifyOptions;
  290.  
  291. typedef _PRINTER_NOTIFY_OPTIONS  TPrinterNotifyOptions;
  292.  
  293. typedef _PRINTER_NOTIFY_INFO_DATA *PPrinterNotifyInfoData;
  294.  
  295. struct WinSpool__2
  296. {
  297.     int cbBuf;
  298.     void *pBuf;
  299. } ;
  300.  
  301. struct WinSpool__1
  302. {
  303.     
  304.     union
  305.     {
  306.         WinSpool__2 Data;
  307.         int adwData[2];
  308.         
  309.     };
  310. } ;
  311.  
  312. typedef _PRINTER_NOTIFY_INFO_DATA  TPrinterNotifyInfoData;
  313.  
  314. typedef _PRINTER_NOTIFY_INFO *PPrinterNotifyInfo;
  315.  
  316. typedef _PRINTER_NOTIFY_INFO  TPrinterNotifyInfo;
  317.  
  318. typedef _PROVIDOR_INFO_1A *PProvidorInfo1A;
  319.  
  320. typedef _PROVIDOR_INFO_1W *PProvidorInfo1W;
  321.  
  322. typedef _PROVIDOR_INFO_1A *PProvidorInfo1;
  323.  
  324. typedef _PROVIDOR_INFO_1A  TProvidorInfo1A;
  325.  
  326. typedef _PROVIDOR_INFO_1W  TProvidorInfo1W;
  327.  
  328. typedef _PROVIDOR_INFO_1A  TProvidorInfo1;
  329.  
  330. //-- var, const, procedure ---------------------------------------------------
  331. #define winspl "winspool.drv"
  332. extern "C" int __stdcall DeletePrinterDataA(int hPrinter, char * pValueName);
  333. extern "C" int __stdcall DeletePrinterDataW(int hPrinter, wchar_t * pValueName);
  334. extern "C" int __stdcall DeletePrinterData(int hPrinter, char * pValueName);
  335. extern "C" int __stdcall EnumPrinterDataA(int hPrinter, int dwIndex, char * pValueName, int cbValueName
  336.     , int &pcbValueName, int &pType, Windows::PByte pData, int cbData, PDWORD pcbData);
  337. extern "C" int __stdcall EnumPrinterDataW(int hPrinter, int dwIndex, wchar_t * pValueName, int cbValueName
  338.     , int &pcbValueName, int &pType, Windows::PByte pData, int cbData, PDWORD pcbData);
  339. extern "C" int __stdcall EnumPrinterData(int hPrinter, int dwIndex, char * pValueName, int cbValueName
  340.     , int &pcbValueName, int &pType, Windows::PByte pData, int cbData, PDWORD pcbData);
  341. extern "C" BOOL __stdcall SetPortA(char * pName, char * pPortName, int dwLevel, void * pPortInfo);
  342. extern "C" BOOL __stdcall SetPortW(wchar_t * pName, wchar_t * pPortName, int dwLevel, void * pPortInfo
  343.     );
  344. extern "C" BOOL __stdcall SetPort(char * pName, char * pPortName, int dwLevel, void * pPortInfo);
  345.  
  346. #if defined(UNICODE)
  347. inline int __stdcall EnumPrinterData(int hPrinter, int dwIndex, char * pValueName, int cbValueName, 
  348.     int &pcbValueName, int &pType, Windows::PByte pData, int cbData, PDWORD pcbData)
  349. {
  350.     return EnumPrinterDataW(hPrinter, dwIndex, pValueName, cbValueName, pcbValueName, pType, pData, cbData
  351.         , pcbData);
  352. }
  353. #else
  354. inline int __stdcall EnumPrinterData(int hPrinter, int dwIndex, char * pValueName, int cbValueName, 
  355.     int &pcbValueName, int &pType, Windows::PByte pData, int cbData, PDWORD pcbData)
  356. {
  357.     return EnumPrinterDataA(hPrinter, dwIndex, pValueName, cbValueName, pcbValueName, pType, pData, cbData
  358.         , pcbData);
  359. }
  360. #endif
  361.  
  362.  
  363. #if defined(UNICODE)
  364. inline int __stdcall DeletePrinterData(int hPrinter, char * pValueName)
  365. {
  366.     return DeletePrinterDataW(hPrinter, pValueName);
  367. }
  368. #else
  369. inline int __stdcall DeletePrinterData(int hPrinter, char * pValueName)
  370. {
  371.     return DeletePrinterDataA(hPrinter, pValueName);
  372. }
  373. #endif
  374.  
  375.  
  376. #if defined(UNICODE)
  377. inline BOOL __stdcall SetPort(char * pName, char * pPortName, int dwLevel, void * pPortInfo)
  378. {
  379.     return SetPortW(pName, pPortName, dwLevel, pPortInfo);
  380. }
  381. #else
  382. inline BOOL __stdcall SetPort(char * pName, char * pPortName, int dwLevel, void * pPortInfo)
  383. {
  384.     return SetPortA(pName, pPortName, dwLevel, pPortInfo);
  385. }
  386. #endif
  387.  
  388.  
  389. }    /* namespace Winspool */
  390. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  391. using namespace Winspool;
  392. #endif
  393. //-- end unit ----------------------------------------------------------------
  394. #endif    // WinSpool
  395.